<template>
  <div v-if="$route.meta.useFrame != undefined && $route.meta.useFrame == true">
    <RouterView></RouterView>
  </div>
  <div  v-if="$route.meta.useFrame == undefined || $route.meta.useFrame == false">

  <!--表示接受值 文本插值表达式-->
 <!-- <h1>当前执行的路径为：{{$route.fullPath }}</h1> -->
  <el-container>
      <el-header>
        <el-row>
    <el-col :span="2">
      <img src="./assets/logo.jpg" alt="" width="200px" height="50px">
    </el-col>
    <el-col :span="20">
     <div style="text-align: center; line-height: 50px;">智能多端服务平台</div> 
    </el-col>
    <el-col :span="2">
      <el-dropdown>
    <span class="el-dropdown-link">
      美杜莎
      <el-icon class="el-icon--right">
        <arrow-down />
      </el-icon>
    </span>
    <template #dropdown>
      <el-dropdown-menu>
        <el-dropdown-item>个人中心</el-dropdown-item>
        <el-dropdown-item>账户与安全</el-dropdown-item>
        <el-dropdown-item>关于我们</el-dropdown-item>
        
        <el-dropdown-item divided>注销</el-dropdown-item>
      </el-dropdown-menu>
    </template>
  </el-dropdown>
    </el-col>
  </el-row></el-header>
      <el-container>
        <el-aside width="200px">
          <Menu></Menu>
        </el-aside>
        <el-main>
          <!--路由的总出口-->
      <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>
<script setup>
import Menu from './components/Menu.vue';
import { RouterView } from 'vue-router';


</script>
<style scoped>
.el-header{
  height: 50px;
  padding-left: 0px;
  background-color: #676a6a;
  .el-dropdown{
    color: #d8dce6;
    font-size: 18px;
    line-height: 50px;
    margin-left: 10px;
  }
}
.el-aside{
  background-color: aquamarine;
}
.el-main{
  padding: 0;
}
</style>
